package com.football.springboot.service;

import com.football.springboot.entity.Game;
import com.baomidou.mybatisplus.extension.service.IService;
import com.football.springboot.entity.GameData;
import com.football.springboot.entity.League;
import com.football.springboot.entity.Team;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 李越
 * @since 2023-02-22
 */
public interface IGameService extends IService<Game> {


    //根据id（gameId）查出该比赛的联赛信息
    League getLeagueinfo(int id);

    //根据主场球队hometeam找出主场球队比赛的信息(查询用)
    List<Integer> getGamebyhometeam(int hometeam);

    //根据客场球队awayteam找出客场球队比赛的信息(查询用)
    List<Integer> getGamebyawayteam(int awayteam);

    //查看比赛详细数据
    GameData getGameData(int gameId);

    //查看一场比赛的两个球队信息
    List<Team> getTeamByGameId(Integer gameId);


}